﻿using System;
using System.Collections.Generic;
using System.Text;
using Habanero.UI.Base;
using UseCaseManager.BO;
using UseCaseManager.UI;

namespace UseCaseManager.Menu
{
    class UseCasesSelectorControlMenuItem : MenuItemCreator
    {
        public override void AddToMenu(HabaneroMenu currentMenu, IControlFactory controlFactory)
        {
            HabaneroMenu.Item menuItem = currentMenu.AddMenuItem("UseCases (UseCaseSelectorControl)");
            Drop drop= new Drop();
            menuItem.FormControlCreator += delegate { return new UseCasesSelectorControl(drop); };
        }
    }
}
